package com.wlc.collection;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 范型
 * @date 2021-07-13 15:24
 */
public class fanxing {

    public void method01() {
        LinkedList linkedList = new LinkedList();
        linkedList.addLast("a");
        System.out.println("=====");
        linkedList.forEach(System.out::println);
        linkedList.addFirst("b");
        System.out.println("=====");
        linkedList.forEach(System.out::println);
        linkedList.removeLast();
        System.out.println("=====");
        linkedList.forEach(System.out::println);

    }

    public static void main(String[] args) {
        fanxing fanxing = new fanxing();
        fanxing.method01();
    }


}
